//1. 公用样式
require('../../assets/css/index.less');
require('../../assets/fonts/iconfont.css');
require('../../assets/css/basic.less');
//2. 当前页面样式
require('./sporting.less');

//3. 公用js
let dom=require('../../utils/dom.js');

//4. 当前页面的js
dom.ready(function () {

  // 倒计时
  // dom.get('.content').style.display = 'none';
  setInterval(function () { 
    countDown.textContent -= 1;
    if (countDown.textContent == 0) {
      countDown.textContent = 'GO';
    } else if(countDown.textContent=='NaN'){ 
      dom.get('.mask').style.display = 'none';
      dom.get('.content').style.display = 'block';
    }
  },1000);
//  点击暂停绑定事件
  puseBtn.addEventListener('click', function () {
    operate.style.visibility = 'hidden';
    btns.style.visibility = 'visible';
  });
  // 点击继续训练按钮
  continueBtn.addEventListener('click', function () {
    operate.style.visibility = 'visible';
    btns.style.visibility = 'hidden';
  });
  // 点击结束训练按钮
  endBtn.addEventListener('click', function () {
    // window.location.href = 'run.html';
    window.history.go(-1)
  });

})

